=== 3D-View for ZX Spectrum ===

(c) Andrew Sharin, march-april 2011




--- 3D-View features ---

1. Automatic building of 3D-view 90 and 45 degrees perspective for ZX Spectrum 256x192 screen.
2. It's need only bmp-file with image of one source face (bmp-file must be 24-bit, no more than 300x300).
3. Automatic obtaining of all face sprites in assembler format for use in our programs.

--- Files ---

3D-View-english.exe - PC program
original.txt - point coordinates of source face
source.txt - source face sprite
sprites90.txt - face sprites for 90 degrees
sprites45.txt - face sptites for 45 degrees
sprite_tester.asm - assembler program for sprite checking (ZX Spectrum)


********************************************************
ATTENTION! BMP-FILE MUST BE 24-bit, NO MORE THAN 300x300
********************************************************

--- Sprite format ---

S453L2
DEFB 40
DEFB 4,0,1, 0,0,0,0,176,173,160,160
...

S453L2 - sprite name, where:
S - always;
45 - degree;
3 - deep level;
L - left from center (R - right, F - center);
2 - width level from center

DEFB 40 - tile value in sprite

DEFB 4,0,1, 0,0,0,0,176,173,160,160 - tile image, where:
4 - vertical coordinate of tile (0..23);
0 - horizontal coordinate of tile (0..31);
1 - attribute byte (0..255). There's no, if disabled check "Add attribute bytes in sprites"
0,0,0,0,176,173,160,160 - tile image bytes.


--- Sprite looking in program sprite-tester.asm (not necessarily) ---

You can look each sprite in ZX Spectrum. It's need:

- copy sprite(s) from sprites90.txt and/or sprites45.txt to end of file sprite-tester.asm;
- enter sprite name in second string of assembler program;
- if not attributes in sprites, then comment some strings in assembler program (it's specified in program code);
- compile and execute from 40000(dec) address in ZX Spectrum.

Attention! Sprites with tile value more than 255 in sprite-tester.asm not work.


Enjoy! :)